import request from '@/utils/request'

// 查询功能建模列表
export function listFunctionalModel(query) {
  return request({
    url: '/business/functionalModel/list',
    method: 'get',
    params: query
  })
}

// 查询功能建模详细
export function getFunctionalModel(id) {
  return request({
    url: '/business/functionalModel/' + id,
    method: 'get'
  })
}

// 新增功能建模
export function addFunctionalModel(data) {
  return request({
    url: '/business/functionalModel',
    method: 'post',
    data: data
  })
}

// 修改功能建模
export function updateFunctionalModel(data) {
  return request({
    url: '/business/functionalModel',
    method: 'put',
    data: data
  })
}

// 删除功能建模
export function delFunctionalModel(id) {
  return request({
    url: '/business/functionalModel/' + id,
    method: 'delete'
  })
}




// 功能缺陷
export function functionalModelFlawList(query) {
  return request({
    url: '/business/functionalModel/functionalModelFlawList',
    method: 'get',
    params: query
  })
}